
#include "utils.h"
#include "hello_world_reply.h"

std::string HelloWorldReply::_reply = "<html><head><title>Conforming HTML 4.01 Strict Template</title></head><body>Hello World!</body></html>";

HelloWorldReply::HelloWorldReply()
{
	status_code( SC_OK );
	headers.set( "Content-Type", "text/html" );
	headers.set( "Content-Length", itoa(_reply.size()) );
}

void HelloWorldReply::send_body( sock::ClientSocket & sock )
{

	sock.write( _reply.data(), _reply.size() );
}

